﻿@model RegModel

@{
    ViewBag.Title = "用户注册";
}

<div class="zhuce">
  <div class="zhuce_left">
    	<div class="zhuce_left_1">
       	  <div class="zhuce_left_1_1" align="right"><img src="~/content/images/img_01.jpg" width="10" height="10"></div>
          <div class="zhuce_left_1_2">会员注册流程</div>
   	  	</div>
        <div class="zhuce_left_2">
        	<img src="~/content/images/img_03.jpg" width="165" height="41" class="img1">
            <img src="~/content/images/img_04.jpg" width="189" height="41" class="img2">
            <img src="~/content/images/img_05.jpg" width="146" height="41" class="img2">
      </div>
      <div class="zhuce_left_3">
       	  <div class="zhuce_left_3_1" align="right"><img src="~/content/images/img_01.jpg" width="10" height="10"></div>
          <div class="zhuce_left_3_2">请填写注册信息</div>
   	  </div>
      @using (Ajax.BeginForm(new AjaxOptions { OnSuccess = "success", HttpMethod = "Post" }))
      {
    @Html.ValidationSummary(true)
          <div class="zhuce_left_4 top15">
      	  <div class="zhuce_left_4_1"><font color="#cc3333">* </font>邮箱：</div>
      	  <div class="zhuce_left_4_2">@Html.EditorFor(model => model.Email)
            @Html.ValidationMessageFor(model => model.Email)
          </div>
      </div>
      <div class="zhuce_left_4">
      	  <div class="zhuce_left_4_1"><font color="#cc3333">* </font>登录密码：</div>
      	  <div class="zhuce_left_4_2">@Html.PasswordFor(model => model.Password)
            @Html.ValidationMessageFor(model => model.Password)
          </div>
      </div>
      <div id="password_strength" class="zhuce_left_4 hide">
      	  <div class="zhuce_left_4_1"> 密码强度：</div>
      	  <div class="zhuce_left_4_2"><label id="pwdstrength"><b></b></label></div>
      </div>
      <div class="zhuce_left_4">
      	  <div class="zhuce_left_4_1"><font color="#cc3333">* </font>确认密码：</div>
      	  <div class="zhuce_left_4_2">@Html.PasswordFor(model => model.Password2)
            @Html.ValidationMessageFor(model => model.Password2)
          </div>
      </div>
      <div class="zhuce_left_4">
      	  <div class="zhuce_left_4_1"><font color="#cc3333">* </font>验证码：</div>
      	  <div class="zhuce_left_4_3">@Html.EditorFor(model => model.Vcode) @Html.ValidationMessageFor(model => model.Vcode)     	  <img id="captcha_img" src="@Url.Action("vcode", new { v = DateTime.Now.Ticks })" align="absmiddle"> &nbsp;看不清？ <a href="javascript:void(0);" onclick="document.getElementById('captcha_img').src='@Url.Action("vcode")?'+parseInt(Math.random()*1000)">点击更换</a>
          <label id="captcha_tip"></label>
          </div>
      </div>
	  <div class="zhuce_left_5">
      	  <div class="zhuce_left_5_1">会员注册协议：</div>
      	  <div class="zhuce_left_5_2">
      	    <textarea name="" class="textarea"></textarea>
   	      </div>
      </div>
      <div class="zhuce_left_6"><input type="checkbox" checked="checked" name="protocol" value="1" id="protocol">      我已阅读并完全接受服务协议
      <label id="protocol_tip"></label>
      </div>
      <div class="zhuce_left_7"><input type="submit" name="submit" value=""></div>
      }  </div>
  <div class="zhuce_right">
      <div class="zhuce_right_1" align="right"><a href="@Url.Action("login")"><img src="~/content/images/img_02.jpg"></a></div>
      <div class="zhuce_right_2"><img src="~/content/images/img_06.jpg" width="83" height="21"></div>
      <div class="zhuce_right_3">
      	为什么要注册会员帐号？<br>
注册了会员将拥有以下特权：<br>
...
      </div>
  </div>
</div>


<script type="text/javascript">
    function success(d) {
        $.handleAjaxCallback(d);
    }
</script>